package cn.webrx;

public class Type4 {
    public static void main(String[] args) {
        int a = 6;
        int b = a + 2;
        a = 30;
        System.out.println(b); //8


        int[] aa = {1,2,3};
        System.out.println(aa[0]); //aa[0] = 1;

        //此数组使用对象的引用类型，bb 和 aa是一个对象，
        int[] bb = aa;
        System.out.println(aa[0]);
        bb[0] = 100;
        System.out.println(aa[0]);

    }
}
